<?php

namespace BigVideo\Other\Decorator\Drink;

/**
 * 抽象类的装饰器
 * 1、实现抽象组件接口
 * 2、持有抽象接口的引用
 * Class Decorator
 * @package BigVideo\Other\Decorator
 */
abstract class Decorator implements Drink
{
    private $drink;

    public function __construct(Drink $drink)
    {
        $this->drink = $drink;
    }

    public function money()
    {
        return $this->drink->money();
    }

    public function desc()
    {
        return $this->drink->desc();
    }
}